public class Eagle extends Bird {
    public String food;
    public String catchFood() {
        return "捕食了一只"+food;
    }
    public Eagle(){
        System.out.println("You build an eagle.");
    }
    public Eagle(int age, int weight, String food){
        this.food = food;
        this.age = age;
        this.weight = weight;
        System.out.println(String.format("You build an %d years old eagle with %dkg weight that eat %s.", age, weight, food));
    }
}
